package org.lex.notepad.ui.action.file;

import java.awt.event.ActionEvent;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;

import javax.swing.KeyStroke;

import org.lex.notepad.ui.action.BaseNotepadAction;

public class OpenAction extends BaseNotepadAction {
	public OpenAction() {
		super();
		this.setName("Open ...");
		this.setMnemonic(KeyEvent.VK_O);
		this.setAcceleratorKey(KeyStroke.getKeyStroke(KeyEvent.VK_O, InputEvent.CTRL_MASK, false));
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		actions.openFileAction();
	}
}
